#ifndef __LOADING_SCENE_H__
#define __LOADING_SCENE_H__

#include "cocos2d.h"

#include "SimpleAudioEngine.h"

using namespace cocos2d;

class LoadingScene : public cocos2d::CCLayer
{
private:
	int m_nLoadingStep;
	int m_nPercent;

public:
    // Here's a difference. Method 'init' in cocos2d-x returns bool, instead of returning 'id' in cocos2d-iphone
    virtual bool init();  

    // there's no 'id' in cpp, so we recommand to return the exactly class pointer
    static cocos2d::CCScene* scene();

    // implement the "static node()" method manually
    CREATE_FUNC(LoadingScene);

	virtual void draw(); 

public:
	void updateGame(float dt);
	void drawLoadingBar(int nPercent);
};

#endif  // __LOADING_SCENE_H__